package com.ers.validmodel;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;


public class HRModel {
	private int id;
	@NotEmpty(message="{name.not.empty}")
	private String name;
	@NotEmpty(message="{loginName.not.empty}")
	private String loginName;
	@NotEmpty(message="{password.not.empty}")
	private String password;
	@NotEmpty(message="{phone.not.empty}")
	private String phone;
	@Email(message="{mailbox.not.correct}")
	@NotEmpty(message="{mailbox.not.empty}")
	private String mailbox;
	@NotEmpty(message="{checkcode.not.empty}")
	private String checkcode;

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMailbox() {
		return mailbox;
	}
	public void setMailbox(String mailbox) {
		this.mailbox = mailbox;
	}
	public String getCheckcode() {
		return checkcode;
	}
	public void setCheckcode(String checkcode) {
		this.checkcode = checkcode;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
}
